﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;

namespace IDAL
{
    public interface IgoodsDAL
    {
        IEnumerable<goods> GetGoodsByRandom(int sum);
        IEnumerable<goods> GetGoodsByType(int type, int sum, string name = "undefined", int orderType = 0);
        IEnumerable<goods> GetGoodsByName(string name);
        goods GetGoodsByID(int? id);
        IEnumerable<goods> GetAllGoods();
        void ModifyState(int id);
        IEnumerable<goodType> GetTypeList();
        void Add(goods good);
        void AddGoodsComment(goodComment com);
    }
}
